/*
 * Title:        CloudScheduler Toolkit
 * Description:  a Toolkit for Modeling and Simulation of Job Scheduling and Resource Provisioning in Cloud System
 * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html
 * Author:       Fuhui Wu
 *
 * Copyright (c) 2013-2014, The National University of Defense Technology, China
 */

package org.nudt.jCloud.infrastructure;

public class RamProvisioner {
	private int ram;
	private int availableRam;

	public RamProvisioner(int ram) {
		setRam(ram);
		setAvailableRam(ram);
	}
	
	public void reset(){
		setAvailableRam(ram);
	}

	/**
	 * @return the availableRam
	 */
	public int getAvailableRam() {
		return availableRam;
	}

	/**
	 * @param availableRam the availableRam to set
	 */
	public void setAvailableRam(int availableRam) {
		this.availableRam = availableRam;
	}

	/**
	 * @return the ram
	 */
	public int getRam() {
		return ram;
	}

	/**
	 * @param ram the ram to set
	 */
	public void setRam(int ram) {
		this.ram = ram;
	}

}
